package com.zcx.mall.oauth.controller;

import com.zcx.mall.common.web.api.ApiResult;
import com.zcx.mall.oauth.service.UserInfoService;
import com.zcx.mall.oauth.vo.RegisterUserRequest;
import com.zcx.mall.oauth.vo.SmsResult;
import com.zcx.mall.oauth.vo.ValidateSmsRequest;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author: zhangcx
 * @create: 2020-12-25 16:49
 **/
@RestController
@Log4j2
public class UserController {

    @Autowired
    private UserInfoService userInfoService;

    /**
     * 用户注册
     * @return
     */
    @PostMapping("/register")
    public @ResponseBody
    ApiResult register(RegisterUserRequest registerUserRequest) {

        //redis校验手机验证码是否校验通过


        //产生用户信息
        return new ApiResult();
    }


}
